package com.foruo.learn.designmode.factory.simplefactory;

public class TestMe {

    public static void main(String[] args) throws Exception{
        Goods goods;

        /** 连衣裙 */
        goods = SimpleFactory.getGoods("Dress");
        System.out.println(goods.getPrice());

        /** 牛仔裤 */
        goods = SimpleFactory.getGoods("Jeans");
        System.out.println(goods.getPrice());

        /** 鞋子 */
        goods = SimpleFactory.getGoods("Shoes");
        System.out.println(goods.getPrice());

    }

}
